#ifndef __SOUNDMANAGER_H__
#define __SOUNDMANAGER_H__
#include <stdio.h>
#include "SoundInfo.h"
#include "UDPApi.h"
#include "SoundInterface.h"
#include "SoundManagerThread.h"
class SoundManagerThread;
class UDPApi;
class SoundInterface;
class SoundManager
{
public:
	SoundManager();
	~SoundManager();
	int Init(UDPApi *udpApi);
	int StartThread();
	int StopThread();
	void Process();
	int SndPlay();
	int SndStop();
	int Monitor();
	int CancelMonitor();
	RTPQUE g_get_que;
	RTPQUE g_put_que;
	JMutex g_get_mutex;
	JMutex g_put_mutex;
private:
	UDPApi *m_udpApi;
	SoundInterface *m_soundInter;
	SoundManagerThread *m_soundManagerThread;
	bool m_soundflag;
	bool m_managerflag;
	bool m_start;
	bool m_isplay;
	bool m_ismonitor;
	JMutex m_play_mutex;
};
#endif


